package com.zhouyu.service;

import com.zhouyu.spring.*;

/**
 * @program: shouxieSpring
 * @author: jzhou
 * @date: 2022-04-13 22:10
 * @version: 1.0
 * @description: fuwu
 **/
@Component("userService")
@Scope("prototype")
public class UserService implements BeanNameAware, InitiallzingBean {

    @Autowired
    private OrderService orderService;

    private String beanName;

    private String xxx;

    public void test(){
        System.out.println("userService.test----"+orderService);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }


    @Override
    public void afterPropertiesSet() {
        System.out.println("------InitiallzingBean.afterPropertiesSet---------UserService-------");
    }
}
